CWE Mapping & Navigation GuidanceBesides manual search of the raw CWE XML files in the latest version, there are several resources for mapping to CWE IDs.
Mapping to CWE IDs - Criteria for the Best Match
To determine whether you have found the best matching CWE ID for a particular weakness, consider the following:
Using the Web Site to Map to a CWE ID
CWE supports multiple views, which are different ways of organizing CWE entries. Two of the most useful views are Research Concepts (CWE-1000) and Development Concepts (CWE-699). For more background, see "The Evolution of the CWE Development and Research Views" and "A Comparison of the CWE Development and Research Views". To conduct mapping, select either the research or developer view and go to the main page for that view. You can do one of the following: Hierarchical DisplayIf the view is hierarchical, select the "Graph" tab. (Both the Research Concepts and Developer Concepts views are hierarchical.) The names and IDs are presented in an indented list. To list additional details to help with the mapping task, click on the "Mapping-Friendly" checkbox in the upper right of the page. This will also display the summary, alternate terms, and the IDs for the parents (and ancestors) of an entry. Initially, only the roots of the hierarchy are displayed. You can expand the entire hierarchy using the "expand all" link. To expand or contract a sub-tree, click the icon to the left of the icon for the entry's type, which shows a "-" to collapse, and a "+" to expand. If you hover the mouse over the ancestors section, this will list the full names of each ancestor entry. This capability is especially convenient when you are several levels deep in the tree. (The full names are not displayed by default, since in-browser text searches would otherwise match too many extraneous entries.) Click on the ancestor section to toggle it open after your mouse leaves. Click on an ID to display the full entry in a separate page. Be aware that many entries have multiple parents, so they may be listed two or more times within the hierarchical display. Slice DisplayA slice presents a flat listing of all entries in the view. By default, all fields for each entry are listed. To concentrate on the most relevant subset of fields for each entry, use the "Presentation Filter" in the upper right of the page. Select either the "Mapping-Friendly" or "Basic Summary" presentation. (If you display all fields, then a text search is likely to find many irrelevant matches.) You can then examine the ParentOf and ChildOf relationships in each individual entry to find other related entries. The PeerOf and CanAlsoBe relationships, when available, can also be helpful. List DisplayThe simple list (List) tab can be quick, since it only includes IDs and names. However, you need to be familiar with CWE's terminology. PDFs with Graphical Depictions of CWEEach hierarchical view is graphically presented in a PDF file. You can perform a text search of the CWE names within the document. This approach is somewhat limited, since only the "primary" parent is graphed, and the page can be large. In-site SearchThe in-site search form will find all matching pages on the CWE web site; all web pages are indexed. To limit your search to only individual CWE entry pages, include "inurl:definitions" in your search string. You can then examine the ParentOf and ChildOf relationships in each individual entry to find other related entries. The PeerOf and CanAlsoBe relationships, when available, can also be helpful. Additional Suggestions for Search and Navigation
If you believe that CWE does not sufficiently cover an issue, contact us at cwe@mitre.org. |